package com.neuedu.mobilebank.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.neuedu.mobilebank.po.ResponseBean;
import com.neuedu.mobilebank.po.TransRecordSub;
import com.neuedu.mobilebank.service.TransRecordService;

@RestController
@RequestMapping("/transrecord")
public class TransRecordController {
	@Autowired
	private TransRecordService trs;
	@GetMapping("/findTransRecord")
	public ResponseBean<List<TransRecordSub>> findTransRecord(Integer accountId){
		
		return trs.findTransRecord(accountId);
	}
}
